<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<title>支付宝支付</title>
<script type="text/javascript">
    AlipayJSBridge.call(
        'tradePay',
        <?php echo $pay_info; ?> ,
        function(result){
            if(result.resultCode == '9000'){
                window.location.href="<?php echo $url ?>";
            } else {
                window.location.href="<?php echo $errorUrl ?>";
            }
        }
    );

    window.onload=callpay;
</script>
</head>
<body>
</body>
</html>